GtkBuilder: improved parsing error report for invalid properties and signals.
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>
Tue, 29 Apr 2014 19:22:32 +0000 (16:22 -0300)
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>
Thu, 1 May 2014 20:59:53 +0000 (17:59 -0300)
commit49fa04212b644f19ce576a8011e3f4fcda6a0806
treebcd193c9b4c61aff1638208d5a1e517a326af6db
parentc4afca906c2ea02ae7a261d2e7e0c8902f3f09e5
GtkBuilder: improved parsing error report for invalid properties and signals.

Added GTK_BUILDER_ERROR_INVALID_PROPERTY and GTK_BUILDER_ERROR_INVALID_SIGNAL
error codes

ObjectInfo: Use a GType instead of a char * for the class name.
PropertyInfo: Use a GParamSpec instead of a char * for the property name.
SignalInfo: Use signal id and detail quark instead of a detailed signal name string.

This not only save us a few malloc in each case but lets us simplify the code
and report unknown properties and signals as a parsing error instead of just
printing a warning.
gtk/gtkbuilder.c
gtk/gtkbuilder.h
gtk/gtkbuilderparser.c
gtk/gtkbuilderprivate.h
testsuite/gtk/builder.c